import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    'userRole': {
      'adminId': null
    },
    'userInfo': {
      'adminId': null
    }
  },
  mutations: {
    setUserRole(state, userRole) {
      return state.userRole = userRole
    },
    setUserInfo(state, userInfo) {
      return state.userInfo = userInfo
    }

  },
  actions: {},
  modules: {}
})
